import http from "@/api/request.js";
//失效了

const bastUrl = "/xxl/userlist/";

export const getAllRole = (data) => {
  return http({
    url: `${bastUrl}queryUserList`,
    method: "post",
    data,
  });
};

export const addRole = (data) => {
  return http({
    url: `${bastUrl}addUser`,
    method: "post",
    data,
  });
};

export const deleteRole = (data) => {
  return http({
    url: `${bastUrl}deleteUserById?id=${data.id}`,
    method: "get",
  });
};
